package com.zd.service.impl;

import com.zd.mapper.ForeignPropertyMapper;
import com.zd.model.ForeignProperty;
import com.zd.service.IForeignPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ForeignPropertyServiceImpl implements IForeignPropertyService {


    @Autowired
    private ForeignPropertyMapper foreignPropertyMapper;

    @Override
    public List<ForeignProperty> selectForeignPropertyInfo() {
        return foreignPropertyMapper.selectForeignPropertyInfo();
    }

    @Override
    public ForeignProperty selectByPrimaryKey(int id) {
        return foreignPropertyMapper.selectByPrimaryKey(new Long(id));
    }
}
